﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

static class Program
{
    static int Main(string[] args)
    {
        if (args.Length == 0) return 10;
        var dirPath = args[0];
        if (!Directory.Exists(dirPath)) return 10;

        var targets = Directory.EnumerateFileSystemEntries(dirPath)
            .Where(p => !Path.GetFileName(p).StartsWith(".git"));
        foreach (var p in targets)
        {
            Directory.Delete(p, true);
        }

        return 0;
    }
}
